<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
  <link rel="stylesheet" href="__PUBLIC__/Admin/Css/public.css">
  <link rel="stylesheet" href="__PUBLIC__/Admin/Css/wish.css">
 </head>
    <body>
        <h2>愿望列表</h2>
        <form method="get">
        <div id="search">
            请输入查询关键字：
            <input type="text" name="sname" value="{$sname}" class="sname"></input>
            <select name="sop" class="sop">
                <option
                    <eq name="sop" value="1">selected="selected"</eq>
                      value="1">按发布者名字查询
                </option>
                <option
                    <eq name="sop" value="2">selected="selected"</eq>
                    value="2">按发布内容查询
                </option>
            </select>
            <input type="submit" value="搜索"></input>
        </div>
        </form>
	<table class="table">
		<tr>
                    <th style="width: 5%;"></th>
                    <th style="width: 5%;">ID</th>
			<th style="width: 15%;">发布者</th>
			<th style="width: 50%;">内容</th>
			<th style="width: 15%;">发布时间</th>
			<th style="width: 5%;">操作</th>
		</tr>

		<foreach name='wish' item='v'>
			<tr>
                            <td><input type="chekbox" value="{$v.id}" name="cboxdel"></input></td>
				<td>{$v.id}</td>
				<td>{$v.name}</td>
				<td>{$v.content}</td>
				<td>{$v.addtime|strtotime|date='Y-m-d H:i',###}</td>
				<td><a href="{:U('Admin/WishManage/del',array('id' => $v['id'])),''}">删除</a></td>
			</tr>
		</foreach>
		<tr>
			<td colspan='6' align='center'>
				{$page}
			</td>
		</tr>
                <tr>
			<td colspan='6' align='center'>
                            <a href="#">删除所选</a>
			</td>
		</tr>
	</table>
  
 </body>
</html>
